package com.changgou.test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class test08 {
    public static void main(String[] args) {

        Integer[] arr2 = {11, 22, 33, 44, 55};//将数组转换成集合,数组必须是引用数据类型
        List<Integer> list = Arrays.asList(arr2);

        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));
        }
    }
}
